From 36723573e56fe5bddf53d15074aa63231ca29bfe Mon Sep 17 00:00:00 2001 From: Alex Williamson Date: Thu, 3 May 2007 14:14:41 -0600 Subject: [PATCH] [IA64] Compliation work around for sparsemem Signed-off-by: Isaku Yamahata --- linux-2.6-xen-sparse/include/asm-ia64/maddr.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/linux-2.6-xen-sparse/include/asm-ia64/maddr.h b/linux-2.6-xen-sparse/include/asm-ia64/maddr.h index c43348f26a..be7242267a 100644 --- a/linux-2.6-xen-sparse/include/asm-ia64/maddr.h +++ b/linux-2.6-xen-sparse/include/asm-ia64/maddr.h @@ -65,6 +65,15 @@ machine_to_phys_for_dma(unsigned long machine) return phys; } +#ifdef CONFIG_SPARSEMEM +/* + * When CONFIG_SPARSEMEM=y, pfn_valid() is defined in + * linux/include/linux/mmzone.h. Hoever #include + * causes the header inclusion hell. + */ +static inline int pfn_valid(unsigned long pfn); +#endif + static inline unsigned long mfn_to_local_pfn(unsigned long mfn) { -- 2.30.2